package com.ruoyi.gis.service.impl;

import java.util.List;

import cn.hutool.core.util.IdUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gis.mapper.DatasetTypeDataPropMapper;
import com.ruoyi.gis.domain.DatasetTypeDataProp;
import com.ruoyi.gis.service.IDatasetTypeDataPropService;

/**
 * datasetpropService业务层处理
 *
 * @author rww
 * @date 2024-08-26
 */
@Service
public class DatasetTypeDataPropServiceImpl implements IDatasetTypeDataPropService
{
    @Autowired
    private DatasetTypeDataPropMapper datasetTypeDataPropMapper;

    /**
     * 查询datasetprop
     *
     * @param id datasetprop主键
     * @return datasetprop
     */
    @Override
    public DatasetTypeDataProp selectDatasetTypeDataPropById(String id)
    {
        return datasetTypeDataPropMapper.selectDatasetTypeDataPropById(id);
    }

    /**
     * 查询datasetprop列表
     *
     * @param datasetTypeDataProp datasetprop
     * @return datasetprop
     */
    @Override
    public List<DatasetTypeDataProp> selectDatasetTypeDataPropList(DatasetTypeDataProp datasetTypeDataProp)
    {
        return datasetTypeDataPropMapper.selectDatasetTypeDataPropList(datasetTypeDataProp);
    }

    /**
     * 新增datasetprop
     *
     * @param datasetTypeDataProp datasetprop
     * @return 结果
     */
    @Override
    public int insertDatasetTypeDataProp(DatasetTypeDataProp datasetTypeDataProp)
    {
        datasetTypeDataProp.setId(IdUtil.getSnowflakeNextIdStr());
        return datasetTypeDataPropMapper.insertDatasetTypeDataProp(datasetTypeDataProp);
    }

    /**
     * 修改datasetprop
     *
     * @param datasetTypeDataProp datasetprop
     * @return 结果
     */
    @Override
    public int updateDatasetTypeDataProp(DatasetTypeDataProp datasetTypeDataProp)
    {
        return datasetTypeDataPropMapper.updateDatasetTypeDataProp(datasetTypeDataProp);
    }

    /**
     * 批量删除datasetprop
     *
     * @param ids 需要删除的datasetprop主键
     * @return 结果
     */
    @Override
    public int deleteDatasetTypeDataPropByIds(String[] ids)
    {
        return datasetTypeDataPropMapper.deleteDatasetTypeDataPropByIds(ids);
    }

    /**
     * 删除datasetprop信息
     *
     * @param id datasetprop主键
     * @return 结果
     */
    @Override
    public int deleteDatasetTypeDataPropById(String id)
    {
        return datasetTypeDataPropMapper.deleteDatasetTypeDataPropById(id);
    }
}
